import axios from "axios"

const src='/api/user';

export function userLogin(params){
    return axios.get(src, {params});
}

export function userPost(data){
    return axios.post(src,data);
}

export function userGet(id){
    return axios.get(src+'/'+id);
}

export function updateById(user){
    return axios.put(src,user);
}

export function userList(){
    return axios.get(src+'/list');
}

export function userDelete(ids){
    return axios.delete(src,{data: ids});
}

export function userPassword(form){
    return axios.put(src+'/password',form)
}
